<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-CPP: TDialog类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-CPP
   </div>
   <div id="projectbrief">AWTK CPP API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="class_t_dialog-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">TDialog类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a>&gt;</code></p>
<div class="dynheader">
类 TDialog 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_t_dialog.png" usemap="#TDialog_map" alt=""/>
  <map id="TDialog_map" name="TDialog_map">
<area href="class_t_window_base.html" alt="TWindowBase" shape="rect" coords="0,56,91,80"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:aee3891944adca9fbd878f3cd776dd5b2"><td class="memItemLeft" align="right" valign="top"><a id="aee3891944adca9fbd878f3cd776dd5b2"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TDialog</b> (widget_t *nativeObj)</td></tr>
<tr class="separator:aee3891944adca9fbd878f3cd776dd5b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8c2f1ba243d5d442130bbdb8d96ed7a8"><td class="memItemLeft" align="right" valign="top"><a id="a8c2f1ba243d5d442130bbdb8d96ed7a8"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TDialog</b> (const dialog_t *nativeObj)</td></tr>
<tr class="separator:a8c2f1ba243d5d442130bbdb8d96ed7a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac278a30412535c88bfd4691dbb8c8390"><td class="memItemLeft" align="right" valign="top">TWidget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_dialog.html#ac278a30412535c88bfd4691dbb8c8390">GetTitle</a> ()</td></tr>
<tr class="separator:ac278a30412535c88bfd4691dbb8c8390"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6edd02188e548c829eba43df275ea033"><td class="memItemLeft" align="right" valign="top">TWidget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_dialog.html#a6edd02188e548c829eba43df275ea033">GetClient</a> ()</td></tr>
<tr class="separator:a6edd02188e548c829eba43df275ea033"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af5c628c1e4fd98565ae1a309f41e6b42"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_dialog.html#af5c628c1e4fd98565ae1a309f41e6b42">SetTitle</a> (const char *title)</td></tr>
<tr class="separator:af5c628c1e4fd98565ae1a309f41e6b42"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeadab50e8b82102ad6c349a331631a99"><td class="memItemLeft" align="right" valign="top">dialog_quit_code_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_dialog.html#aeadab50e8b82102ad6c349a331631a99">Modal</a> ()</td></tr>
<tr class="separator:aeadab50e8b82102ad6c349a331631a99"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa037d24877e4c122675db48b712c4e9d"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_dialog.html#aa037d24877e4c122675db48b712c4e9d">Quit</a> (uint32_t code)</td></tr>
<tr class="separator:aa037d24877e4c122675db48b712c4e9d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adab2f069e08a84392e14225972cbb53c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_dialog.html#adab2f069e08a84392e14225972cbb53c">IsQuited</a> ()</td></tr>
<tr class="separator:adab2f069e08a84392e14225972cbb53c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9811f690c0fff49ba5af2515c6f2f779"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_dialog.html#a9811f690c0fff49ba5af2515c6f2f779">IsModal</a> ()</td></tr>
<tr class="separator:a9811f690c0fff49ba5af2515c6f2f779"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac9b1309c34a363e86e9a7d3658dd5cb6"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_dialog.html#ac9b1309c34a363e86e9a7d3658dd5cb6">GetHighlight</a> () const</td></tr>
<tr class="separator:ac9b1309c34a363e86e9a7d3658dd5cb6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_t_window_base"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_t_window_base')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="class_t_window_base.html">TWindowBase</a></td></tr>
<tr class="memitem:a8ee82f7d1d7c5d8ec69d3013587ad497 inherit pub_methods_class_t_window_base"><td class="memItemLeft" align="right" valign="top"><a id="a8ee82f7d1d7c5d8ec69d3013587ad497"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TWindowBase</b> (widget_t *nativeObj)</td></tr>
<tr class="separator:a8ee82f7d1d7c5d8ec69d3013587ad497 inherit pub_methods_class_t_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf3bcfc0b3a710b7b466c2b16446123c inherit pub_methods_class_t_window_base"><td class="memItemLeft" align="right" valign="top"><a id="abf3bcfc0b3a710b7b466c2b16446123c"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TWindowBase</b> (const window_base_t *nativeObj)</td></tr>
<tr class="separator:abf3bcfc0b3a710b7b466c2b16446123c inherit pub_methods_class_t_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a601f1606bf5af9351729e8cf6d9a66b3 inherit pub_methods_class_t_window_base"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_window_base.html#a601f1606bf5af9351729e8cf6d9a66b3">GetTheme</a> () const</td></tr>
<tr class="separator:a601f1606bf5af9351729e8cf6d9a66b3 inherit pub_methods_class_t_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a46d951598e105b9c6aa80fa6e53706ff inherit pub_methods_class_t_window_base"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_window_base.html#a46d951598e105b9c6aa80fa6e53706ff">GetDesignW</a> () const</td></tr>
<tr class="separator:a46d951598e105b9c6aa80fa6e53706ff inherit pub_methods_class_t_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2bca0cab9285276672d16692edba6407 inherit pub_methods_class_t_window_base"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_window_base.html#a2bca0cab9285276672d16692edba6407">GetDesignH</a> () const</td></tr>
<tr class="separator:a2bca0cab9285276672d16692edba6407 inherit pub_methods_class_t_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae379a459962d16f4bf860f7ef1c3057e inherit pub_methods_class_t_window_base"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_window_base.html#ae379a459962d16f4bf860f7ef1c3057e">GetAutoScaleChildrenX</a> () const</td></tr>
<tr class="separator:ae379a459962d16f4bf860f7ef1c3057e inherit pub_methods_class_t_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a41ab3e34f57ee7c879a76acdf4c3f89b inherit pub_methods_class_t_window_base"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_window_base.html#a41ab3e34f57ee7c879a76acdf4c3f89b">GetAutoScaleChildrenY</a> () const</td></tr>
<tr class="separator:a41ab3e34f57ee7c879a76acdf4c3f89b inherit pub_methods_class_t_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a51f2e0f3a08ba2504da880552579cc18 inherit pub_methods_class_t_window_base"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_window_base.html#a51f2e0f3a08ba2504da880552579cc18">GetAutoScaleChildrenW</a> () const</td></tr>
<tr class="separator:a51f2e0f3a08ba2504da880552579cc18 inherit pub_methods_class_t_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae141e242773aedf8d7c23b8e18bf16e9 inherit pub_methods_class_t_window_base"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_window_base.html#ae141e242773aedf8d7c23b8e18bf16e9">GetAutoScaleChildrenH</a> () const</td></tr>
<tr class="separator:ae141e242773aedf8d7c23b8e18bf16e9 inherit pub_methods_class_t_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe3c785954bb7f9b36aef0c8404791b7 inherit pub_methods_class_t_window_base"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_window_base.html#abe3c785954bb7f9b36aef0c8404791b7">GetDisableAnim</a> () const</td></tr>
<tr class="separator:abe3c785954bb7f9b36aef0c8404791b7 inherit pub_methods_class_t_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a785e621ad5b45b66df5407042c967f95 inherit pub_methods_class_t_window_base"><td class="memItemLeft" align="right" valign="top">window_closable_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_window_base.html#a785e621ad5b45b66df5407042c967f95">GetClosable</a> () const</td></tr>
<tr class="separator:a785e621ad5b45b66df5407042c967f95 inherit pub_methods_class_t_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a999ec9d1a83b966a1dca2d41bcbbe61f inherit pub_methods_class_t_window_base"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_window_base.html#a999ec9d1a83b966a1dca2d41bcbbe61f">GetOpenAnimHint</a> () const</td></tr>
<tr class="separator:a999ec9d1a83b966a1dca2d41bcbbe61f inherit pub_methods_class_t_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a916fe8622c4e893c76fd3a505eb898d8 inherit pub_methods_class_t_window_base"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_window_base.html#a916fe8622c4e893c76fd3a505eb898d8">GetCloseAnimHint</a> () const</td></tr>
<tr class="separator:a916fe8622c4e893c76fd3a505eb898d8 inherit pub_methods_class_t_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2c891e673ad398018e950b2123518096 inherit pub_methods_class_t_window_base"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_window_base.html#a2c891e673ad398018e950b2123518096">GetMoveFocusPrevKey</a> () const</td></tr>
<tr class="separator:a2c891e673ad398018e950b2123518096 inherit pub_methods_class_t_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a779b72528696980bc6e8216f975b7552 inherit pub_methods_class_t_window_base"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_window_base.html#a779b72528696980bc6e8216f975b7552">GetMoveFocusNextKey</a> () const</td></tr>
<tr class="separator:a779b72528696980bc6e8216f975b7552 inherit pub_methods_class_t_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a08702c73171683fadc8cfcdd88a9b78b inherit pub_methods_class_t_window_base"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_window_base.html#a08702c73171683fadc8cfcdd88a9b78b">GetMoveFocusUpKey</a> () const</td></tr>
<tr class="separator:a08702c73171683fadc8cfcdd88a9b78b inherit pub_methods_class_t_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a298b383e463a6c6855e4789b97329649 inherit pub_methods_class_t_window_base"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_window_base.html#a298b383e463a6c6855e4789b97329649">GetMoveFocusDownKey</a> () const</td></tr>
<tr class="separator:a298b383e463a6c6855e4789b97329649 inherit pub_methods_class_t_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2812b0aec83f6358c93382ade42251cb inherit pub_methods_class_t_window_base"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_window_base.html#a2812b0aec83f6358c93382ade42251cb">GetMoveFocusLeftKey</a> () const</td></tr>
<tr class="separator:a2812b0aec83f6358c93382ade42251cb inherit pub_methods_class_t_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a75401bad5c3a209a65087ed952347dc4 inherit pub_methods_class_t_window_base"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_window_base.html#a75401bad5c3a209a65087ed952347dc4">GetMoveFocusRightKey</a> () const</td></tr>
<tr class="separator:a75401bad5c3a209a65087ed952347dc4 inherit pub_methods_class_t_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7479c5141435482973ac4b63442a0f8f inherit pub_methods_class_t_window_base"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_window_base.html#a7479c5141435482973ac4b63442a0f8f">GetAppletName</a> () const</td></tr>
<tr class="separator:a7479c5141435482973ac4b63442a0f8f inherit pub_methods_class_t_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a082ad83c9a08b9d78f44dd096aab22cb inherit pub_methods_class_t_window_base"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_window_base.html#a082ad83c9a08b9d78f44dd096aab22cb">GetSingleInstance</a> () const</td></tr>
<tr class="separator:a082ad83c9a08b9d78f44dd096aab22cb inherit pub_methods_class_t_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a160b7cba70f8d0d093802b2a15b7af4d inherit pub_methods_class_t_window_base"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_window_base.html#a160b7cba70f8d0d093802b2a15b7af4d">GetStronglyFocus</a> () const</td></tr>
<tr class="separator:a160b7cba70f8d0d093802b2a15b7af4d inherit pub_methods_class_t_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a0e063de2aeda54653f827dc80a72fa31"><td class="memItemLeft" align="right" valign="top"><a id="a0e063de2aeda54653f827dc80a72fa31"></a>
static <a class="el" href="class_t_dialog.html">TDialog</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (widget_t *nativeObj)</td></tr>
<tr class="separator:a0e063de2aeda54653f827dc80a72fa31"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a05d5300e50df8a699c5b294e52b6e317"><td class="memItemLeft" align="right" valign="top"><a id="a05d5300e50df8a699c5b294e52b6e317"></a>
static <a class="el" href="class_t_dialog.html">TDialog</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const widget_t *nativeObj)</td></tr>
<tr class="separator:a05d5300e50df8a699c5b294e52b6e317"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2c8ca21cafde389cc15ff9ac4dd385c2"><td class="memItemLeft" align="right" valign="top"><a id="a2c8ca21cafde389cc15ff9ac4dd385c2"></a>
static <a class="el" href="class_t_dialog.html">TDialog</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (TWidget &amp;obj)</td></tr>
<tr class="separator:a2c8ca21cafde389cc15ff9ac4dd385c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9933a6d142f8e1517b3f49138253ea29"><td class="memItemLeft" align="right" valign="top"><a id="a9933a6d142f8e1517b3f49138253ea29"></a>
static <a class="el" href="class_t_dialog.html">TDialog</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const TWidget &amp;obj)</td></tr>
<tr class="separator:a9933a6d142f8e1517b3f49138253ea29"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6b1e7e338ec2ae48b68df0505f239083"><td class="memItemLeft" align="right" valign="top">static TWidget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_dialog.html#a6b1e7e338ec2ae48b68df0505f239083">Create</a> (TWidget &amp;parent, xy_t x, xy_t y, wh_t w, wh_t h)</td></tr>
<tr class="separator:a6b1e7e338ec2ae48b68df0505f239083"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a908352703befc6858506bc2ff002886f"><td class="memItemLeft" align="right" valign="top">static TWidget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_dialog.html#a908352703befc6858506bc2ff002886f">CreateSimple</a> (TWidget &amp;parent, xy_t x, xy_t y, wh_t w, wh_t h)</td></tr>
<tr class="separator:a908352703befc6858506bc2ff002886f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7606a5ef7bda9401314bea5e10bc8308"><td class="memItemLeft" align="right" valign="top">static TWidget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_dialog.html#a7606a5ef7bda9401314bea5e10bc8308">Open</a> (const char *name)</td></tr>
<tr class="separator:a7606a5ef7bda9401314bea5e10bc8308"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a025bcd9093b23fd65764ce83d416dc40"><td class="memItemLeft" align="right" valign="top">static ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_dialog.html#a025bcd9093b23fd65764ce83d416dc40">Toast</a> (const char *text, uint32_t duration)</td></tr>
<tr class="separator:a025bcd9093b23fd65764ce83d416dc40"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a04d48e2b28a75298711aa4bbedaa5d73"><td class="memItemLeft" align="right" valign="top">static ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_dialog.html#a04d48e2b28a75298711aa4bbedaa5d73">Info</a> (const char *title, const char *text)</td></tr>
<tr class="separator:a04d48e2b28a75298711aa4bbedaa5d73"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaff23dd8429444b6e9660e7135b0d9b1"><td class="memItemLeft" align="right" valign="top">static ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_dialog.html#aaff23dd8429444b6e9660e7135b0d9b1">Warn</a> (const char *title, const char *text)</td></tr>
<tr class="separator:aaff23dd8429444b6e9660e7135b0d9b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a342592b1255b2c735b13d9e681264572"><td class="memItemLeft" align="right" valign="top">static ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_dialog.html#a342592b1255b2c735b13d9e681264572">Confirm</a> (const char *title, const char *text)</td></tr>
<tr class="separator:a342592b1255b2c735b13d9e681264572"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_static_methods_class_t_window_base"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_class_t_window_base')"><img src="closed.png" alt="-"/>&#160;静态 Public 成员函数 继承自 <a class="el" href="class_t_window_base.html">TWindowBase</a></td></tr>
<tr class="memitem:a3fb2635fa070697e58c5ded7fc379f9a inherit pub_static_methods_class_t_window_base"><td class="memItemLeft" align="right" valign="top"><a id="a3fb2635fa070697e58c5ded7fc379f9a"></a>
static <a class="el" href="class_t_window_base.html">TWindowBase</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (widget_t *nativeObj)</td></tr>
<tr class="separator:a3fb2635fa070697e58c5ded7fc379f9a inherit pub_static_methods_class_t_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9257e5853c911e1b72be7c3e284a86bc inherit pub_static_methods_class_t_window_base"><td class="memItemLeft" align="right" valign="top"><a id="a9257e5853c911e1b72be7c3e284a86bc"></a>
static <a class="el" href="class_t_window_base.html">TWindowBase</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const widget_t *nativeObj)</td></tr>
<tr class="separator:a9257e5853c911e1b72be7c3e284a86bc inherit pub_static_methods_class_t_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a96c2165d59c4e3468f4e4a3369132f9a inherit pub_static_methods_class_t_window_base"><td class="memItemLeft" align="right" valign="top"><a id="a96c2165d59c4e3468f4e4a3369132f9a"></a>
static <a class="el" href="class_t_window_base.html">TWindowBase</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (TWidget &amp;obj)</td></tr>
<tr class="separator:a96c2165d59c4e3468f4e4a3369132f9a inherit pub_static_methods_class_t_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b0b15eadef758ff6d7adea4b88128b3 inherit pub_static_methods_class_t_window_base"><td class="memItemLeft" align="right" valign="top"><a id="a2b0b15eadef758ff6d7adea4b88128b3"></a>
static <a class="el" href="class_t_window_base.html">TWindowBase</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const TWidget &amp;obj)</td></tr>
<tr class="separator:a2b0b15eadef758ff6d7adea4b88128b3 inherit pub_static_methods_class_t_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>对话框。 对话框是一种特殊的窗口，大小和位置可以自由设置。</p>
<p>AWTK中的对话框可以是模态的，也可以是非模态的。</p>
<p>如果dialog有透明或半透效果则不支持窗口动画。</p>
<blockquote class="doxtable">
<p>由于浏览器中无法实现主循环嵌套，因此无法实现模态对话框。 </p>
</blockquote>
<p>如果希望自己写的AWTK应用程序可以在浏览器(包括各种小程序)中运行或演示， 请避免使用模态对话框。</p>
<p>对话框通常由对话框标题和对话框客户区两部分组成：</p>
<p>dialog_t是window\_base\_t的子类控件，window_base_t的函数均适用于dialog_t控件。</p>
<p>在xml中使用"dialog"标签创建对话框。如：</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">dialog</span> <span class="keyword">anim_hint</span>=<span class="stringliteral">&quot;center_scale(duration=300)&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;c&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;m&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;80%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;160&quot;</span> <span class="keyword">text</span>=<span class="stringliteral">&quot;Dialog&quot;</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">dialog_title</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;30&quot;</span> <span class="keyword">text</span>=<span class="stringliteral">&quot;Hello AWTK&quot;</span> /&gt;</div>
<div class="line">*&lt;<span class="keywordtype">dialog_client</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;bottom&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;-30&quot;</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">label</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;center&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;middle:-20&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;200&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;30&quot;</span> <span class="keyword">text</span>=<span class="stringliteral">&quot;Are you ready?&quot;</span>/&gt;</div>
<div class="line">*&lt;<span class="keywordtype">button</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;quit&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;10&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;bottom:10&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;40%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;30&quot;</span> <span class="keyword">text</span>=<span class="stringliteral">&quot;确定&quot;</span>/&gt;</div>
<div class="line">*&lt;<span class="keywordtype">button</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;quit&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;right:10&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;bottom:10&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;40%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;30&quot;</span> <span class="keyword">text</span>=<span class="stringliteral">&quot;取消&quot;</span>/&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">dialog_client</span>&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">dialog</span>&gt;</div>
</div><!-- fragment --><p>如果你不需要对话框的标题，可以这样写：</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">dialog</span> <span class="keyword">anim_hint</span>=<span class="stringliteral">&quot;center_scale(duration=300)&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;c&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;m&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;80%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;160&quot;</span> <span class="keyword">text</span>=<span class="stringliteral">&quot;Dialog&quot;</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">label</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;center&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;middle:-20&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;200&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;30&quot;</span> <span class="keyword">text</span>=<span class="stringliteral">&quot;Are you ready?&quot;</span>/&gt;</div>
<div class="line">*&lt;<span class="keywordtype">button</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;quit&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;10&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;bottom:10&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;40%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;30&quot;</span> <span class="keyword">text</span>=<span class="stringliteral">&quot;确定&quot;</span>/&gt;</div>
<div class="line">*&lt;<span class="keywordtype">button</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;quit&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;right:10&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;bottom:10&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;40%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;30&quot;</span> <span class="keyword">text</span>=<span class="stringliteral">&quot;取消&quot;</span>/&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">dialog</span>&gt;</div>
</div><!-- fragment --><p>打开非模态对话框时，其用法与普通窗口一样。打开非模态对话框时，还需要调用dialog_modal。</p>
<p>关闭模态对话框用dialog_quit</p>
<p>关闭非模态对话框用window_close。</p>
<blockquote class="doxtable">
<p>更多用法请参考： </p>
</blockquote>
<p><a href="https://github.com/zlgopen/awtk/blob/master/design/default/ui/">dialog.xml</a></p>
<blockquote class="doxtable">
<p>完整C代码示例请参考： </p>
</blockquote>
<p><a href="https://github.com/zlgopen/awtk-c-demos/blob/master/demos/dialog.c">非模态对话框</a></p>
<p><a href="https://github.com/zlgopen/awtk-c-demos/blob/master/demos/dialog_modal.c">模态对话框</a></p>
<p>可用通过style来设置控件的显示风格，如字体的大小和颜色等等。如：</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">style</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;default&quot;</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">normal</span> <span class="keyword">border_color</span>=<span class="stringliteral">&quot;#606060&quot;</span> /&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">style</span>&gt;</div>
</div><!-- fragment --><blockquote class="doxtable">
<p>更多用法请参考： </p>
</blockquote>
<p><a href="https://github.com/zlgopen/awtk/blob/master/design/default/styles/default.xml#L324">theme default</a> </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a342592b1255b2c735b13d9e681264572"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a342592b1255b2c735b13d9e681264572">&#9670;&nbsp;</a></span>Confirm()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TDialog::Confirm </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>title</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>text</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>显示『确认』对话框。</p>
<p>窗体样式由dialog_confirm.xml文件决定。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">title</td><td>标题。 </td></tr>
    <tr><td class="paramname">text</td><td>文本内容。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示确认，否则表示取消。 </dd></dl>

</div>
</div>
<a id="a6b1e7e338ec2ae48b68df0505f239083"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6b1e7e338ec2ae48b68df0505f239083">&#9670;&nbsp;</a></span>Create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">TWidget TDialog::Create </td>
          <td>(</td>
          <td class="paramtype">TWidget &amp;&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">xy_t&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">xy_t&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">wh_t&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">wh_t&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建dialog对象。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父控件 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标 </td></tr>
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>dialog对象。 </dd></dl>

</div>
</div>
<a id="a908352703befc6858506bc2ff002886f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a908352703befc6858506bc2ff002886f">&#9670;&nbsp;</a></span>CreateSimple()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">TWidget TDialog::CreateSimple </td>
          <td>(</td>
          <td class="paramtype">TWidget &amp;&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">xy_t&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">xy_t&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">wh_t&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">wh_t&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建dialog对象，同时创建title/client。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父控件 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标 </td></tr>
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>dialog对象。 </dd></dl>

</div>
</div>
<a id="a6edd02188e548c829eba43df275ea033"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6edd02188e548c829eba43df275ea033">&#9670;&nbsp;</a></span>GetClient()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TWidget TDialog::GetClient </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取client控件。</p>
<dl class="section return"><dt>返回</dt><dd>client对象。 </dd></dl>

</div>
</div>
<a id="ac9b1309c34a363e86e9a7d3658dd5cb6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac9b1309c34a363e86e9a7d3658dd5cb6">&#9670;&nbsp;</a></span>GetHighlight()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char * TDialog::GetHighlight </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>对话框高亮策略。</p>
<blockquote class="doxtable">
<p>请参考 <a href="https://github.com/zlgopen/awtk/blob/master/docs/dialog_highlight.md">对话框高亮策略</a> </p>
</blockquote>

</div>
</div>
<a id="ac278a30412535c88bfd4691dbb8c8390"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac278a30412535c88bfd4691dbb8c8390">&#9670;&nbsp;</a></span>GetTitle()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TWidget TDialog::GetTitle </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取title控件。</p>
<dl class="section return"><dt>返回</dt><dd>title对象。 </dd></dl>

</div>
</div>
<a id="a04d48e2b28a75298711aa4bbedaa5d73"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a04d48e2b28a75298711aa4bbedaa5d73">&#9670;&nbsp;</a></span>Info()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TDialog::Info </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>title</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>text</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>显示『提示信息』对话框。</p>
<p>窗体样式由dialog_info.xml文件决定。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">title</td><td>标题。 </td></tr>
    <tr><td class="paramname">text</td><td>文本内容。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a9811f690c0fff49ba5af2515c6f2f779"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9811f690c0fff49ba5af2515c6f2f779">&#9670;&nbsp;</a></span>IsModal()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool TDialog::IsModal </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>检查对话框是否为模态对话框。</p>
<dl class="section return"><dt>返回</dt><dd>返回TRUE表示是模态对话框，否则表示不是。 </dd></dl>

</div>
</div>
<a id="adab2f069e08a84392e14225972cbb53c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adab2f069e08a84392e14225972cbb53c">&#9670;&nbsp;</a></span>IsQuited()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool TDialog::IsQuited </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>检查对话框是否已经退出模态。</p>
<dl class="section return"><dt>返回</dt><dd>返回TRUE表示已经退出，否则表示没有。 </dd></dl>

</div>
</div>
<a id="aeadab50e8b82102ad6c349a331631a99"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeadab50e8b82102ad6c349a331631a99">&#9670;&nbsp;</a></span>Modal()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">dialog_quit_code_t TDialog::Modal </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>模态显示对话框。 dialog_modal返回后，dialog对象将在下一个idle函数中回收。 也就是在dialog_modal调用完成后仍然可以访问dialog中控件，直到本次事件结束。 调用该函数会使线程进入阻塞状态，需要调用dialog_quit来解除阻塞。</p>
<dl class="section return"><dt>返回</dt><dd>返回退出码，值为dialog_quit函数中传入的参数。 </dd></dl>

</div>
</div>
<a id="a7606a5ef7bda9401314bea5e10bc8308"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7606a5ef7bda9401314bea5e10bc8308">&#9670;&nbsp;</a></span>Open()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">TWidget TDialog::Open </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>从资源文件中加载并创建Dialog对象。</p>
<p>本函数在ui_loader/ui_builder_default里实现。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>dialog的名称。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="aa037d24877e4c122675db48b712c4e9d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa037d24877e4c122675db48b712c4e9d">&#9670;&nbsp;</a></span>Quit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TDialog::Quit </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>code</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>退出模态显示，关闭对话框。</p>
<blockquote class="doxtable">
<p>比如，在对话框中关闭按钮的事件处理函数中，调用本函数关闭对话框。 </p>
</blockquote>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">code</td><td>退出码，作为dialog_modal的返回值(参考：dialog_quit_code_t)。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="af5c628c1e4fd98565ae1a309f41e6b42"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af5c628c1e4fd98565ae1a309f41e6b42">&#9670;&nbsp;</a></span>SetTitle()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TDialog::SetTitle </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>title</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置对话框的标题文本。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">title</td><td>标题。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a025bcd9093b23fd65764ce83d416dc40"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a025bcd9093b23fd65764ce83d416dc40">&#9670;&nbsp;</a></span>Toast()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TDialog::Toast </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>duration</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>显示『短暂提示信息』对话框。</p>
<p>窗体样式由dialog_toast.xml文件决定。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">text</td><td>文本内容。 </td></tr>
    <tr><td class="paramname">duration</td><td>显示时间(单位为毫秒)。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="aaff23dd8429444b6e9660e7135b0d9b1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaff23dd8429444b6e9660e7135b0d9b1">&#9670;&nbsp;</a></span>Warn()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TDialog::Warn </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>title</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>text</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>显示『警告』对话框。</p>
<p>窗体样式由dialog_warn.xml文件决定。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">title</td><td>标题。 </td></tr>
    <tr><td class="paramname">text</td><td>文本内容。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a></li>
<li>output/awtk_cpp.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
